﻿<?xml version="1.0" encoding="utf-8" ?> 
<Mapping  xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	
	<Entity type="Person" table="Persons">
		<Id field="PersonID">
			<Generator name="guid" />
		</Id>
		<Attribute name="LastName" type="System.String" table="Names" parentField="FK_PersonID" field="Name" db-type="String" discriminator="NameType" discriminator-value="LastName"/>
		<Attribute name="FirstName" type="System.String" table="Names" parentField="FK_PersonID" field="Name" db-type="String" discriminator="NameType" discriminator-value="FirstName"/>
		<Attribute name="NickName" type="System.String" table="Names" parentField="FK_PersonID" field="Name" db-type="String" discriminator="NameType" discriminator-value="NickName"/>
		<Attribute name="City" type="System.String" field="City" db-type="String"/>
	</Entity>
	
</Mapping>
